package com.itheima.IODemo;

import java.io.FileOutputStream;
import java.io.IOException;

public class Demo02 {

    public static void main(String[] args) throws IOException {

        FileOutputStream fos = new FileOutputStream("20240417\\a.txt");

       // fos.write(97);
        //fos.write(98);

        //一次写入一个数组
        byte[] bytes= {97,98,99,100,101};
        fos.write(bytes,0,5);//从索引1开始输入两个数
        fos.close();
    }
}
